<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
    #Marquee{ height:40px; overflow:hidden;}
    #Marquee div{ background:#EEECF4; height:40px; line-height: 40px;}
    </style>
</head>
<body>
    <div id='Marquee' style='top:0px;'>
        <div>
        <span class=''>用户数量达到 23132 位</span>
        <span class=''>教师使用数量 23123 位</span>
        <span class=''>学生使用数量 2131232 位</span>
        <span class=''>资料总数 2313214224 道题</span>
        </div>
    </div>
        
        
        <script>
        onload=function(){setTimeout(start,stoptime)};var Mar = document.getElementById("Marquee");
        var child_div=Mar.getElementsByTagName("div")
        var picH = 20;//移动高度
        var scrollstep=3;//移动步幅,越大越快
        var scrolltime=40;//移动频度(毫秒)越大越慢
        var stoptime=3000;//间断时间(毫秒)
        var tmpH = 0;
        Mar.innerHTML += Mar.innerHTML;
        function start(){
            if(tmpH < picH){
                tmpH += scrollstep;
                if(tmpH > picH )tmpH = picH ;
                Mar.scrollTop = tmpH;
                setTimeout(start,scrolltime);
            }else{
                tmpH = 0;
                Mar.appendChild(child_div[0]);
                Mar.scrollTop = 0;
                setTimeout(start,stoptime);
            }
        }
        onload=function(){setTimeout(start,stoptime)};
        </script>
</body>
</html>